import 'package:flutter/material.dart';

import 'index.dart';

class DatePickerState {
  DatePickerType type = DatePickerType.ymdhm;

  var bgColor = Colors.transparent;
  DateTime? curr;
  late DatePickerResult result;

  late int year;
  late int month;
  late int day;
  late int apm;
  late int hour;
  late int minute;
  late int quarter;

  DateTime? minDate;
  DateTime? maxDate;

  void initData({
    DateTime? minDate,
    DateTime? maxDate,
    int apm = 0,
    int hour = 0,
    int minute = 0,
    DatePickerType type = DatePickerType.ymdapm,
    DateTime? curr,
  }) {
    this.minDate = minDate;
    this.maxDate = maxDate;
    this.apm = apm;
    this.hour = hour;
    this.minute = minute;
    this.type = type;
    this.curr = curr;
  }
}
